//
//  UILabel+Extension.swift
//  XCMicroBo
//
//  Created by 1 on 16/3/11.
//  Copyright © 2016年 1. All rights reserved.
//

import UIKit

extension UILabel {
    
    class func labelWith (text:String , textColor:UIColor , textAlignment : NSTextAlignment = .Center , textFont:CGFloat) -> UILabel {
        
        
        let label = UILabel()
        
        label.text = text 
        
        label.textColor = textColor
        
        label.textAlignment = textAlignment
        
        label.numberOfLines = 0
        
        label.font = UIFont.systemFontOfSize(textFont)
        
        label.sizeToFit()
        
        return label

    }
    
}